package com.ge.demo.restfulws.beans;

import java.io.Serializable;
import java.util.List;

import org.springframework.hateoas.Link;
import org.springframework.hateoas.ResourceSupport;

public class Deal extends ResourceSupport implements Serializable{

	private static final long serialVersionUID = 834579826378467832L;
	
	private String preCloseId;
	private String postCloseId;
	private String dealName;
	private List<Company> participants;

	public String getPreCloseId() {
		return preCloseId;
	}

	public void setPreCloseId(String preCloseId) {
		this.removeLinks();
		add(new Link("/deal/"+preCloseId, Link.REL_SELF));
		this.preCloseId = preCloseId;
	}

	public List<Company> getParticipants() {
		return participants;
	}

	public void setParticipants(List<Company> participants) {
		this.participants = participants;
	}

	public String getPostCloseId() {
		return postCloseId;
	}

	public void setPostCloseId(String postCloseId) {
		this.postCloseId = postCloseId;
	}

	public String getDealName() {
		return dealName;
	}

	public void setDealName(String dealName) {
		this.dealName = dealName;
	}

}